package com.wanter.vote.entity;

import com.wanter.users.entity.User;

import java.io.Serializable;
import java.util.Date;

/**
 * 被投票的实体类
 */
public class BeVoted implements Serializable {
    /**
     * 主键
     */
    private Integer id;
    /**
     * 昵称
     */
    private String name;
    /**
     * 描述
     */
    private String desc;
    /**
     * 照片
     */
    private String voteimage;
    /**
     * 得票数
     */
    private Integer votenum;
    /**
     * 投票人数
     */
    private Integer votepeops;
    /**
     * 创建时间
     */
    private Date createdate;
    /**
     * 最后修改时间
     */
    private Date modifydate;
    /**
     * 创建人
     */
    private User creUSer;
    /**
     * 创建人的id
     */
    private String createid;

    /**
     * 审核人的id
     */
    private String auditid;

    /**
     * 审核人
     */
    private User audUSer;
    /**
     * 审核通过时间
     */
    private Date auditdate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc == null ? null : desc.trim();
    }

    public String getVoteimage() {
        return voteimage;
    }

    public void setVoteimage(String voteimage) {
        this.voteimage = voteimage == null ? null : voteimage.trim();
    }

    public Integer getVotenum() {
        return votenum;
    }

    public void setVotenum(Integer votenum) {
        this.votenum = votenum;
    }

    public Integer getVotepeops() {
        return votepeops;
    }

    public void setVotepeops(Integer votepeops) {
        this.votepeops = votepeops;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Date getModifydate() {
        return modifydate;
    }

    public void setModifydate(Date modifydate) {
        this.modifydate = modifydate;
    }

    public User getCreUSer() {
        return creUSer;
    }

    public void setCreUSer(User creUSer) {
        this.creUSer = creUSer;
    }

    public User getAudUSer() {
        return audUSer;
    }

    public void setAudUSer(User audUSer) {
        this.audUSer = audUSer;
    }

    public Date getAuditdate() {
        return auditdate;
    }

    public void setAuditdate(Date auditdate) {
        this.auditdate = auditdate;
    }

    public String getCreateid() {
        return createid;
    }

    public void setCreateid(String createid) {
        this.createid = createid;
    }

    public String getAuditid() {
        return auditid;
    }

    public void setAuditid(String auditid) {
        this.auditid = auditid;
    }

    @Override
    public String toString() {
        return "BeVoted{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                ", voteimage='" + voteimage + '\'' +
                ", votenum=" + votenum +
                ", votepeops=" + votepeops +
                ", createdate=" + createdate +
                ", modifydate=" + modifydate +
                ", creUSer=" + creUSer +
                ", createid='" + createid + '\'' +
                ", auditid='" + auditid + '\'' +
                ", audUSer=" + audUSer +
                ", auditdate=" + auditdate +
                '}';
    }
}
